PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.text Package / PDFTextEngine Class / measureString Method
String to measure.
Font used to display the string.
In This Topic
    measureString Method
    In This Topic
    Measures the specified string.
    Syntax
    public static PDFSize measureString( 
       java.lang.String s,
       PDFFont font
    )

    Parameters

    s
    String to measure.
    font
    Font used to display the string.

    Return Value

    The size of the string when displayed using the font.
    See Also